/**
 * 
 */
package cn.g31010.sip.pojo;

import org.json.JSONObject;

/**
 * @author user
 *
 */
public class Config implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3727691892002493895L;
	private int maxCamNum=2;
	private int maxMicNum=2;
	private int maxMemberNum=10;
	public int getMaxCamNum() {
		return this.maxCamNum;
	}
	public void setMaxCamNum(int maxCamNum) {
		this.maxCamNum = maxCamNum;
	}
	public int getMaxMicNum() {
		return this.maxMicNum;
	}
	public void setMaxMicNum(int maxMicNum) {
		this.maxMicNum = maxMicNum;
	}
	public int getMaxMemberNum() {
		return this.maxMemberNum;
	}
	public void setMaxMemberNum(int maxMemberNum) {
		this.maxMemberNum = maxMemberNum;
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + this.maxCamNum;
		result = prime * result + this.maxMemberNum;
		result = prime * result + this.maxMicNum;
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Config other = (Config) obj;
		if (this.maxCamNum != other.maxCamNum)
			return false;
		if (this.maxMemberNum != other.maxMemberNum)
			return false;
		if (this.maxMicNum != other.maxMicNum)
			return false;
		return true;
	}
	
	public String toString() {
		JSONObject jso=new JSONObject(this);
		return jso.toString();
	}
}
